package com.terracloud.server.common.data.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@Schema(description = "终端日志统计信息")
public class TerminalStatistics {

    @Schema(description = "今日告警总数")
    private long todayAlertCount;

    @Schema(description = "未处理警告数")
    private long unprocessedWarningCount;

    @Schema(description = "紧急告警数")
    private long criticalAlertCount;

    @Schema(description = "SLA达标率 (%)")
    private double slaComplianceRate;

    @Schema(description = "终端异常数")
    private long terminalExceptionCount;

    @Schema(description = "持续24小时以上的终端异常数")
    private long longTermExceptionCount;

    public TerminalStatistics(long todayAlertCount, long unprocessedWarningCount,
                              long criticalAlertCount, double slaComplianceRate,
                              long terminalExceptionCount, long longTermExceptionCount) {
        this.todayAlertCount = todayAlertCount;
        this.unprocessedWarningCount = unprocessedWarningCount;
        this.criticalAlertCount = criticalAlertCount;
        this.slaComplianceRate = slaComplianceRate;
        this.terminalExceptionCount = terminalExceptionCount;
        this.longTermExceptionCount = longTermExceptionCount;
    }

}